import { country } from '@/api/manage'

import base from '@/app/model'

// 继承总模型
const model = new base;

model.get = () => {
  return new Promise((resolve, jeject) => {
    country().then(res => {
      model.setList(res)
      resolve(res)
    }).catch(res => {
      jeject(res)
    })
  })
}

model.get()

export default model